﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/TemplateUser.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="AirlineProject.Models"%>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Book
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <link href="../../Content/user/css/all.css" rel="stylesheet" type="text/css" />
    <div class="wrapper pad1">
      <article class="col1">
        <div class="box1">
          <h2 class="top">Hot Offers of the Week</h2>
          <div class="pad"> <strong>Ho Chi Minh</strong><br>
            <ul class="pad_bot1 list1">
              <li> <span class="right color1">price: 200USD</span><a href="#">Phu Quoc</a></li>
            </ul>
            <strong>Ha Noi</strong><br>
            <ul class="pad_bot1 list1">
              <li> <span class="right color1">price: 350USD</span><a href="#">Nha Trang</a></li>
              <li> <span class="right color1">price: 400USD</span><a href="#">Ca Mau</a></li>
            </ul>
            <strong>Da Nang</strong><br>
            <ul class="pad_bot2 list1">
              <li> <span class="right color1">price: 200USD</span><a href="#">Hai Phong</a></li>
              <li> <span class="right color1">price: 500USD</span><a href="#">Noi Bai</a></li>
              <li> <span class="right color1">price: 700USD</span><a href="#">Vinh</a></li>
            </ul>
          </div>
        </div>
      </article>
      <article class="col2">
        <div class="tabs2">
          <ul class="nav">
            <li class="selected"><a href="#Flight">Flight Information</a></li>
          </ul>
          <div class="content">
            <div class="tab-content" id="Flight">
              <form id="form_5" action="#" class="form_5" method="post">
                <div>
                  <div class="radio">
                    
                  </div>
                  <div class="pad">
                    <div class="wrapper under">
                      <div class="col1">
                      </div>
                    </div>
                    <div class="wrapper under">
                        <div>
				            <table class="listing" cellpadding="0" cellspacing="0">
					            <tr>
						            <th>Departs</th>
						            <th>Arrives</th>
						            <th>Departure Date</th>
						            <th>Price</th>
						            <th>Flight Id</th>
						            <th>Book</th>
					            </tr>
					            <%                         
                            Flight ffl = new Flight();
                            AccountModels acm= new AccountModels();
                            List<Flight> dsf = (List<Flight>)Session["ds"];
                        foreach (Flight fl in dsf)
                         {  
                    %> 
                    <tr>
                           <td width="177" align="center"><%= fl.Orgin.place_name %></td>
                           <td width="177" align="center"><%= fl.Destination.place_name %></td>
                           <td width="177" align="center"><%= fl.departure_date.ToShortDateString() %></td>
                           <td width="177" align="center"><%= fl.flight_price %></td>
                           <td width="177" align="center"><%= fl.flight_id %></td>                                           
                           <td><a href='<%= Url.Action("Book2/"+fl.flight_id,"Account") %>'><img src="../../Content/user/images/info.png" width="16" height="16" alt="booking" /></a></td> 
                   
                      </tr>
                           <% } %>                
				            </table>
			            </div>
                    </div>
                    
                  </div>
                </div>
              </form>
            </div>
          </div>
        </div>
      </article>
    </div>
</asp:Content>
